package com.zte.springboot_smbms.controller;

import com.zte.springboot_smbms.service.AddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/addressController")
public class AddressController {
    @Autowired
    private AddressService addressService;

    @RequestMapping("/findAllAddress")
    public String findAllBill(Model model){
        model.addAttribute("billList",addressService.findAllAddress());
        return "addressList";
    }

}
